<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <title>资源</title>
    <link rel="stylesheet" type="text/css" href="../bootstrap/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../themes/default/xui.css" />
	<style>
		span.required {
			color: red;
		}
	</style>
    <script type="text/javascript" src="../jquery-1.10.2.js"></script>
    <script type="text/javascript" src="../jquery.xui.js"></script>
</head>

<body style="padding:5px; min-width:800px;">
	<ul class="breadcrumb" style="border-width: 0px 0px 1px 0px; border-style: solid; border-color: #ebebeb;">
	  <li><a href="#">首页</a> <span class="divider">/</span></li>
	  <li class="active">资源</li>
	</ul>
    <div>
        <div>
            <form id="search-fm" action="/action/admin/res-info/search" method="post">
                <table class="">
                    <tr>
                        <td class="right td20">
                            <label>资源代码：</label>
                        </td>
                        <td class="td30">
                            <input type="text" name="res_code">
                        </td>
                        <td class="right td20">
                            <label>资源名称：</label>
                        </td>
                        <td class="td30">
                            <input type="text" name="res_name">
                        </td>
                    </tr>
                    <tfoot>
                        <tr>
                            <td colspan="4">
                                <a href="javascript:void(0)" class="btn btn-primary" onclick="xTool.search(this)">查询</a>
                                <a href="javascript:void(0)" class="btn" onClick="xTool.add(this)" data-options="form:'#detail-fm',url:'/action/admin/res-info/create'">新增</a>
                                <a href="javascript:void(0)" class="btn" onclick="xTool.reset(this)">重置</a>
                            </td>
                        </tr>
                    </tfoot>
                </table>
            </form>
        </div>
        <br>
        <!--
        <div id="search-dg-tb">
            <a href="javascript:void(0)" class="btn action" onClick="xTool.view(this)" data-options="datagrid:'#search-dg',form:'#detail-fm',url:'/action/admin/res-info/view'">查看详情</a>
            <a href="javascript:void(0)" class="btn action" onClick="xTool.edit(this)" data-options="datagrid:'#search-dg',form:'#detail-fm',url:'/action/admin/res-info/update'">编辑</a>
            <a href="javascript:void(0)" class="btn action" onClick="xTool.deleteBatchSubmit(this)" data-options="datagrid:'#search-dg',url:'/action/admin/res-info/delete'">删除</a>
            <div style="margin:5px;"></div>
        </div>
        -->
        <div>
        <table class="table table-bordered table-hover table-condensed" data-options="pagination:'#pager'">
            <thead>
                <tr>
                    <th class="x-datagrid-cell-rownumber" data-options="field:'rn',rownumber:true">&nbsp;</th>
                    <th class="x-datagrid-cell-check" data-options="field:'chk',checkbox:true">
                        <input type="checkbox" />
                    </th>
                    <th data-options="field:'res_code'">资源代码</th>
                    <th data-options="field:'res_name'">资源名称</th>
                    <th data-options="field:'op'">操作</th>
                </tr>
            </thead>
            <tbody>
            </tbody>
        </table>
        <div id="pager" class="pagination">
            <select class="x-pagination-page-list">
                <option selected>10</option>
                <option>20</option>
                <option>50</option>
                <option>100</option>
            </select>
            <ul>
                <li><a href="javascript:void(0)" class="x-pagination-first">首页</a>
                </li>
                <li><a href="javascript:void(0)" class="x-pagination-prev">上一页</a>
                </li>
                <li><a href="javascript:void(0)" class="x-pagination-next">下一页</a>
                </li>
                <li><a href="javascript:void(0)" class="x-pagination-last">末页</a>
                </li>
                <li><a href="javascript:void(0)" class="x-pagination-reload">刷新</a>
                </li>
            </ul>
            <span class="x-pagination-info"></span>
        </div>
        </div>
    </div>
    <div>
        <form id="detail-fm" action="/action/admin/res-info/view" method="post">
            <table>
                <tbody>
                    <tr>
                        <td class="td20 right">
                            <label>资源代码：</label>
                        </td>
                        <td class="td30">
                            <input type="text" name="res_code" class="easyui-validatebox edit" data-options="required:true">
                            <span class="required">*</span>
                        </td>
                        <td class="td20 right">
                            <label>资源名称：</label>
                        </td>
                        <td class="td30">
                            <input type="text" name="res_name" class="easyui-validatebox" data-options="required:true">
                            <span class="required">*</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="td20 right">
                            <label>资源描述：</label>
                        </td>
                        <td class="td30">
                            <input type="text" name="res_desc" class="">
                        </td>
                        <td class="td20 right">&nbsp;</td>
                        <td class="td30">&nbsp;</td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="4" class="">
                        	<!--
                            <a href="javascript:void(0)" class="btn btn-primary button add" data-options="iconCls:'icon-ok',url:'/action/admin/res-info/create'" onclick="xTool.addSubmit(this)">新增提交</a> 
                            <a href="javascript:void(0)" class="btn btn-primary button edit" data-options="iconCls:'icon-ok',url:'/action/admin/res-info/update'" onclick="xTool.editSubmit(this)">编辑提交</a> 
                            -->
                            <a href="javascript:void(0)" class="btn btn-primary button" data-options="iconCls:'icon-ok''" onclick="xTool.submit(this)">提交</a> 
                            <a href="javascript:void(0)" class="btn" data-options="iconCls:'icon-return'" onclick="xTool.returnSearch(this)">返回</a>
                        </td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
    <script>
    </script>
</body>

</html>